<?php
/**
 * @Author: Administrator
 * @Date:   2014-08-10 22:24:29
 * @Last Modified by:   Administrator
 * @Last Modified time: 2014-08-10 23:07:52
 */


/**
* 企业信息视图
*/
class ComInfoViewModel extends ViewModel
{
	public $table = 'company_baseinfo';

	public $view = array(
			'company_otherinfo'=>array(
				'type' => INNER_JOIN,
				'on'   => 'company_baseinfo.user_uid = company_otherinfo.user_uid'				
				)
		);


	public function get_all()
	{
		return $this->all();
	}

	public function del_company($cbid)
	{
		return $this->where(array('cbid'=>$cbid))->del();
	}
}